//
//  BROrderDetailModel.h
//  BrezzeSaaS
//
//  Created by IOS on 2021/11/11.
//  Copyright © 2021 Brezze GWG. All rights reserved.
//

#import "BROrderListModel.h"

NS_ASSUME_NONNULL_BEGIN

@interface BROrderDetailModel : BROrderListModel

/// 是否低于支付免费
@property (nonatomic,assign) BOOL isFree;

@property (nonatomic,strong) BRCouponModel *userCouponInfo;
@property (nonatomic,strong) BRCouponModel *userPromoCodeInfo;

@property (nonatomic,strong) NSString *userCouponId;
@property (nonatomic,strong) NSString *userPromoCodeId;

// MARK: - 新接口 V2 字段

/// uuid 订单流水号/订单编号（用于显示）
@property (nonatomic,strong) NSString *uuid;

/// 租借设备信息 box1
@property (nonatomic,assign) NSInteger box1Id;
@property (nonatomic,assign) NSInteger box1ProductId;
@property (nonatomic,assign) NSInteger box1AgencyId;
@property (nonatomic,assign) NSInteger box1SiteId;

/// 归还设备信息 box2
@property (nonatomic,assign) NSInteger box2Id;
@property (nonatomic,assign) NSInteger box2ProductId;
@property (nonatomic,assign) NSInteger box2AgencyId;
@property (nonatomic,assign) NSInteger box2SiteId;
@property (nonatomic,strong) NSString *box2SiteName;
@property (nonatomic,assign) NSInteger box2DeviceId;

/// 充电宝信息 single
@property (nonatomic,assign) NSInteger singleId;
@property (nonatomic,assign) NSInteger singleProductId;
@property (nonatomic,assign) NSInteger singleAgencyId;
@property (nonatomic,assign) NSInteger singleDeviceId;

/// 使用状态文本
@property (nonatomic,strong) NSString *usingStausText;

/// 是否已支付
@property (nonatomic,assign) BOOL pay;

/// 是否手动处理
@property (nonatomic,assign) BOOL manual;

/// 是否需要检查弹出状态
@property (nonatomic,assign) BOOL check;

/// 时间信息（时间戳）
@property (nonatomic,assign) NSInteger returnTime;
@property (nonatomic,assign) NSInteger payTime;
@property (nonatomic,assign) NSInteger buyTime;
@property (nonatomic,assign) NSInteger checkTime;
@property (nonatomic,assign) NSInteger updateTime;
@property (nonatomic,assign) NSInteger latestPayTime;
@property (nonatomic,assign) NSInteger refundTime;

/// 费用信息
@property (nonatomic,strong) NSDecimalNumber *fee;
@property (nonatomic,strong) NSDecimalNumber *payFee;
@property (nonatomic,strong) NSDecimalNumber *currencyFee;
@property (nonatomic,strong) NSDecimalNumber *platformFee;
@property (nonatomic,strong) NSDecimalNumber *commissionFee;
@property (nonatomic,strong) NSDecimalNumber *securityFee;
@property (nonatomic,strong) NSDecimalNumber *ruleSecurityHqFee;
@property (nonatomic,strong) NSDecimalNumber *ruleSecurityBoxFee;
@property (nonatomic,strong) NSDecimalNumber *ruleSecuritySingleFee;

/// 计费规则信息
@property (nonatomic,assign) NSInteger ruleMinuteLatestPay;
@property (nonatomic,assign) NSInteger fistMinute;
@property (nonatomic,strong) NSDecimalNumber *fistMinuteFee;

/// 使用时长信息
@property (nonatomic,assign) NSInteger usingSecound;
@property (nonatomic,assign) NSInteger seconds;
@property (nonatomic,strong) NSString *distanceTime;
@property (nonatomic,strong) NSString *distanceTime2;

/// 优惠券信息
@property (nonatomic,assign) NSInteger couponId;
@property (nonatomic,strong) NSString *couponName;
@property (nonatomic,assign) NSInteger couponTime;
@property (nonatomic,assign) NSInteger coupon_time;
@property (nonatomic,assign) NSInteger couponSubsidy;

/// 延期信息
@property (nonatomic,assign) BOOL delayedStatus;
@property (nonatomic,assign) NSInteger delayedStartTime;
@property (nonatomic,assign) NSInteger delayedEndTime;
@property (nonatomic,strong) NSString *delayTime;

/// 支付信息
@property (nonatomic,strong) NSString *payWay;
@property (nonatomic,strong) NSString *pay_way;
@property (nonatomic,strong) NSString *payUuid;
@property (nonatomic,assign) NSInteger securityOrderId;
@property (nonatomic,assign) BOOL security;

/// 其他信息
@property (nonatomic,strong) NSString *model;
@property (nonatomic,strong) NSString *nickName;
@property (nonatomic,assign) NSInteger uuidLastSix;
@property (nonatomic,assign) BOOL includedFreeTime;
@property (nonatomic,assign) NSInteger hidden;
@property (nonatomic,assign) BOOL latestPay;

@end

NS_ASSUME_NONNULL_END
